﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;

namespace WorkOrders.Data
{
    public interface IRepository<T> where T : class
    {
        void CloseSession();
        T Find(int id);
        IList<T> FindAll();
        IList<T> FindAll(string orderBy);
        IList<T> FindAll(string[] orderBy);
        void SaveOrUpdate(T entity);
        void Delete(T entity);
        int Count();
    }
}
